package org.game.db.proxy.bean;

import org.cfg.CommodityCfg;
import org.cfg.cache.CommodityCfgCache;
import org.game.db.bean.CommodityBuyRecord;

import com.sojoys.artifact.build.data.base.BasePojoProxy;

/**
 * @author : DengYing
 * @CreateDate : 2017年11月30日 下午2:26:29
 * @Description ：商品购买扩展
 */
public class CommodityBuyRecordProxy extends BasePojoProxy<CommodityBuyRecordProxy, CommodityBuyRecord>{

	private CommodityCfg cfg;
	
	public CommodityCfg getCfg(){
		if (cfg == null){
			cfg = CommodityCfgCache.me().getById(t.getCommodityId());
		}
		return cfg;
	}
}
